home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0429.dms / q0429.adf / libshade / stats.h < prev    next >
C/C++ Source or Header  |  1991-08-08  |  1KB  |  49 lines

  1. /*
  2.  * stats.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: stats.h,v 4.0 91/07/17 14:47:46 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    stats.h,v $
  19.  * Revision 4.0  91/07/17  14:47:46  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef STATS_H
  24. #define STATS_H
  25.  
  26. /*
  27.  * Statistics
  28.  */
  29. typedef struct RSStats {
  30.     unsigned long    EyeRays,    /* # of eye rays spawned */
  31.             ShadowRays,    /* # of shadow rays spawned */
  32.             ReflectRays,    /* # of reflected rays */
  33.             RefractRays,    /* # of refracted rays */
  34.             HitRays,    /* # of rays that hit something. */
  35.             BVTests,    /* # of bounding volume tests. */
  36.             SuperSampled,    /* # of supersampled pixels. */
  37.             ShadowHits,    /* # of shadow ray hits */
  38.             CacheHits,    /* # of shadow cache hits */
  39.             CacheMisses;    /* # of shadow cache misses */
  40.     Float        Utime,        /* User time */
  41.             Stime;        /* System time */
  42.     FILE        *fstats;    /* Stats/info file pointer. */
  43. } RSStats;
  44.  
  45. extern RSStats Stats;
  46. extern void StatsPrint(), StatsAddRep();
  47.  
  48. #endif /* STATS_H */
  49.